<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	21 April 2010
// version :	21 April 2010

class Cmis_Repository_AllowableActions_AllowableAction
{
	protected $_value;
	protected $_name;

	/**
	 * @param bool $value
	 * @param string $name
	 */
    public function __construct($name, $value = false)
    {
        $this->_value = $value;
        $this->_name = $name;
    }

    /**
     * Return the allowable action value
     */
    public function isAllowable()
    {
    	return $this->_value;
    }

    /**
     * Get the name of the allowableAction
     */
    public function getName()
    {
    	return $this->_name;
    }

    public function __toString()
    {
    	return $this->getName() . ' : ' . ($this->isAllowable()?'true':'false') . "\r\n";
    }
}

# EOF
